package com.zzy.banian.crm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 商机表 crm_opportunity
 * 
 * @author zhangzuoyi
 * @date 2019-05-04
 */
public class Opportunity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 名称 */
	private String name;
	/** 负责人 */
	private String manager;
	/** 客户ID */
	private Integer customerId;
	/** 商机阶段 */
	private Integer stage;
	/** 商机类型 */
	private Integer type;
	/** 商机来源 */
	private Integer source;
	/** 预计金额 */
	private Integer amountEstimate;
	/** 预计日期 */
	private Date dateEstimate;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setManager(String manager) 
	{
		this.manager = manager;
	}

	public String getManager() 
	{
		return manager;
	}
	public void setCustomerId(Integer customerId) 
	{
		this.customerId = customerId;
	}

	public Integer getCustomerId() 
	{
		return customerId;
	}
	public void setStage(Integer stage) 
	{
		this.stage = stage;
	}

	public Integer getStage() 
	{
		return stage;
	}
	public void setType(Integer type) 
	{
		this.type = type;
	}

	public Integer getType() 
	{
		return type;
	}
	public void setSource(Integer source) 
	{
		this.source = source;
	}

	public Integer getSource() 
	{
		return source;
	}
	public void setAmountEstimate(Integer amountEstimate) 
	{
		this.amountEstimate = amountEstimate;
	}

	public Integer getAmountEstimate() 
	{
		return amountEstimate;
	}
	public void setDateEstimate(Date dateEstimate) 
	{
		this.dateEstimate = dateEstimate;
	}

	public Date getDateEstimate() 
	{
		return dateEstimate;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("manager", getManager())
            .append("customerId", getCustomerId())
            .append("stage", getStage())
            .append("type", getType())
            .append("source", getSource())
            .append("amountEstimate", getAmountEstimate())
            .append("dateEstimate", getDateEstimate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
